package com.h2cloud.reflection;

@MyAnnotation(value = "java")
public class Person extends Creature<String> implements Comparable<String>, MyInterface {

    private String name;
    int age;
    public int id;

    public Person() {
    }

    @MyAnnotation(value = "C++")
    Person(String name) {
        this.name = name;
    }

    private Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @MyAnnotation
    private String show(String nation) throws NullPointerException, Exception {
        System.out.println("我来自" + nation + "星系");
        return nation;
    }

    @Override
    public void info() {
        System.out.println("火星喷子");
    }

    public String display(String play) {
        return play;
    }

    private static void showDesc() {
        System.out.println("this is showDesc");
    }

    @Override
    public int compareTo(String o) {
        return 0;
    }
}
